import org.junit.Test;

import java.util.Arrays;
import java.util.Locale;

public class StringTest {
    @Test
    public void StringTest(){
        String str=new String("ksdjfsljk");
        String str1="sd?jfasj?njs?df";
        String str2="GAISUDGFHAGS";
        System.out.println("哈四肢是："+str.hashCode());
        System.out.println(str.equals(str1));
       /* System.out.println(str.length());
        System.out.println(str.toUpperCase());
        System.out.println(str2.toLowerCase());
        System.out.println(str.startsWith("k"));
        System.out.println(str.endsWith("s"));
        System.out.println(str.charAt(1));*/
        System.out.println(str1.indexOf("j"));
        System.out.println(str.concat(str1));
       String[] c=str1.split("\\?");
        System.out.println(Arrays.toString(c));

    }

    @Test
   public void StringBuffer(){
        //创建工具类对象
        StringBuffer s1 = new StringBuffer();
        StringBuffer s2 = new StringBuffer();


       s1.append("sjudhfjus");


    }
}
